From 9fd20b06664b0f51c720173825cd3725a8c8d2f8 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Tue, 10 Oct 2006 10:06:56 +0100 Subject: [PATCH] Correct check for extended-cr3 support in __xen_guest fallback code. Signed-off-by: Ian Campbell --- tools/libxc/xc_load_elf.c | 2 +- xen/common/elf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libxc/xc_load_elf.c b/tools/libxc/xc_load_elf.c index 3fbd3d9ccc..9ca9759398 100644 --- a/tools/libxc/xc_load_elf.c +++ b/tools/libxc/xc_load_elf.c @@ -364,7 +364,7 @@ static int parseelfimage(const char *image, if ( p != NULL && strncmp(p, "yes", 3) == 0 ) { dsi->pae_kernel = PAEKERN_yes; - if ( !strncmp(p+4, "[extended-cr3]", 14) ) + if ( !strncmp(p+3, "[extended-cr3]", 14) ) dsi->pae_kernel = PAEKERN_extended_cr3; } } diff --git a/xen/common/elf.c b/xen/common/elf.c index 00730c1bb8..83381b4b1a 100644 --- a/xen/common/elf.c +++ b/xen/common/elf.c @@ -304,7 +304,7 @@ int parseelfimage(struct domain_setup_info *dsi) if ( p != NULL && strncmp(p, "yes", 3) == 0 ) { dsi->pae_kernel = PAEKERN_yes; - if ( !strncmp(p+4, "[extended-cr3]", 14) ) + if ( !strncmp(p+3, "[extended-cr3]", 14) ) dsi->pae_kernel = PAEKERN_extended_cr3; } } -- 2.30.2